using System;
using System.Collections.Generic;

namespace WebBrowserApp
{
    public class PageInfo
    {
        public string Url { get; set; } = string.Empty;
        public string Title { get; set; } = string.Empty;
        public DateTime LoadTime { get; set; }
        public string HtmlContent { get; set; } = string.Empty;
        public string TextContent { get; set; } = string.Empty;
        public int HtmlLength => HtmlContent?.Length ?? 0;
        public int TextContentLength => TextContent?.Length ?? 0;
        public int LinkCount { get; set; }
        public List<string> Links { get; set; } = new List<string>();
        public int ImageCount { get; set; }
        public List<string> Images { get; set; } = new List<string>();
        public int FormCount { get; set; }
        public Dictionary<string, string> MetaTags { get; set; } = new Dictionary<string, string>();
        public int ScriptCount { get; set; }
        public int StyleSheetCount { get; set; }
    }
}

